﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;

namespace Emz.Core.Models
{
    public class PayrollDate : EntityBase<int>
    {
        [Required]        
        public DateTime Paydate { get; set; }
        
        public DateTime Startdate { get; set; }
        public DateTime Enddate { get; set; }

        #region References
        //many to many relation to Payroll
        public virtual ICollection<PayrollSummary> PayrollSummaries { get; set; }
        #endregion

        #region   Constructor        
        public PayrollDate()
        {
            PayrollSummaries = new HashSet<PayrollSummary>();
        }
        #endregion
    }
}
